package com.moyou.weichat.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator
 * on 2016/11/14 0014.
 */

public class T {

    private static Toast mToast;



    public  static void Tips(String msg, Context context) {
        if (mToast != null)
            mToast.cancel();
        mToast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
        mToast.show();
    }


    public static void Tips(int resId, Context context) {
        if (mToast != null)
            mToast.cancel();
        mToast = Toast.makeText(context, resId, Toast.LENGTH_SHORT);
        mToast.show();
    }
}
